<?php // @version $Id: default_item.php 9718 2007-12-20 22:35:36Z eddieajau $
defined('_JEXEC') or die('Restricted access');
 
// Immagine associata ad articolo
if($this->item->params->get("id_image") && $this->item->params->get("id_image") != '-1') {
	
	// Preparo invocazione per dimensione corretta
	jimport('effetticollaterali.utils.images.helper');
	jimport('joomla.html.html');
	
	JHTML :: _('behavior.modal', 'a.modal');
	$img_scale = ECImagesHelper :: getScaleImage('/images/stories/' . $this->item->params->get("id_image"), 150);
	
	// Load config
	$config = new JConfig();
	?>
		<a href="/images/stories/<?php echo $this->item->params->get("id_image")?>" class="modal"><img src="<?php echo $img_scale ?>" alt="<?php echo $config -> sitename . " - " . $this->item->title ?>" /></a>
	<?php
}